﻿using Md.Api.Model.Manage.SysConfig.Request;
using Md.Dapper.Repositories.Md;

namespace Md.Api.Service.Manage.SysConfig;
/// <summary>
/// 通过配置编号获取系统配置服务
/// </summary>
public class GetSysConfigByConfigIdService : ApiBase<RequestGetSysConfigByConfigIdModel>
{
    /// <summary>
    /// 系统配置仓储
    /// </summary>
    public SysConfigRep sysConfigRep { get; set; }
    /// <summary>
    /// 执行
    /// </summary>
    protected override void ExecuteMethod()
    {
        var res = sysConfigRep.GetSysConfigByConfigId(Parameter.ConfigId);

        Result.Data = res;
    }
}

